package com.un.ebs.invoice.domain;

import com.un.ebs.product.enums.ProductPurchaseTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InvoiceNoteItemBySaleExt)表实体类
 *
 * @author liubo
 * @since 2020-12-01 21:33:57
 */
@Data
@Component
@TableName("v_invoice_note_item_by_sale_ext")
@SuppressWarnings("serial")
public class InvoiceNoteItemBySaleExt extends Model<InvoiceNoteItemBySaleExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "note_id", length = 40, precision = 0)
    private String noteId;

    @DbField(name = "sale_order_id", length = 40, precision = 0)
    private String saleOrderId;

    @DbField(name = "code", length = 100, precision = 0)
    private String code;

    @DbField(name = "contract_code", length = 100, precision = 0)
    private String contractCode;

    @DbField(name = "customer_ent_name", length = 40, precision = 0)
    private String customerEntName;

    @DbField(name = "sku_id", length = 40, precision = 0)
    private String skuId;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "sku_name", length = 100, precision = 0)
    private String skuName;

    @DbField(name = "purchase_type", length = -1, precision = 0)
    private ProductPurchaseTypeEnum purchaseType;

    @DbField(name = "class_name", length = 40, precision = 0)
    private String className;

    @DbField(name = "order_qty", length = 38, precision = 4)
    private Double orderQty;

    @DbField(name = "order_money", length = 38, precision = 8)
    private Double orderMoney;

    private Double invoiceMoney;


}